import App from './App'

// #ifndef VUE3
import Vue from 'vue'
import './uni.promisify.adaptor'
//将api挂载到uni全局对象上
import api from '@/api/index.js'
import uView from '@/uni_modules/uview-ui'
//导入store
import store from '@/store/index.js'
Vue.use(uView)
uni.$api=api
//定义全局过滤器
Vue.filter('RMB',function(arg){
	return `¥${arg}`
})
Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
  ...App,
  store
})
app.$mount()
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'
export function createApp() {
  const app = createSSRApp(App)
  return {
    app
  }
}
// #endif